#include "GameLevel.h"

CGameLevel::CGameLevel()
{
}

CGameLevel::~CGameLevel()
{
}

bool CGameLevel::init()
{
	if (!Node::init())
	{
		return false;
	}

	SpriteFrameCache* pCache = SpriteFrameCache::getInstance();
	pCache->addSpriteFramesWithFile("sprites/levels.plist");

	m_pSprite = Sprite::createWithSpriteFrameName("level_half.png");
	m_pSprite->setScale(2);
	this->addChild(m_pSprite);

	return true;
}

void CGameLevel::initData(CLevelData*& pDt)
{
	if (!pDt)
	{
		return;
	}
	this->setData(pDt);
}
